$(document).ready(function(){
	
	$("#EDIT_TEAM").click(function(){
		var content = $("#d_teamID").text();
		window.location.href="/ag/hmk/findOneTeam_getOneTeam.action?teamID="+content;
		//window.location.replace("hmk/editAidTeam.jsp");
	});
	
	$("#DEL_TEAM").click(function(){
		var content = $("#d_teamID").text();
		var url = 'hmk/delTeam_delTeam.action';
		var params = {
			teamID:content
		}; 
		jQuery.post(url, params, delData, 'json');
	});

	$("#BACK_TEAM").click(function(){
		//window.history.back();
		window.location.replace("/ag/hmk/AidTeamMain.jsp");
	});
});

function delData(data){
	if(data.delStr=='1'){
		alert("删除成功");
		window.location.replace("/ag/hmk/AidTeamMain.jsp");
	 }else{
		alert("del error");
		//window.location.replace("hmk/AidTeamMain.jsp");
	 }
}